package com.space.user.assembler;

import com.space.client.dto.UserAccountInfoDTO;
import com.space.user.converter.ShareMapperConfig;
import com.space.user.domain.account.entity.UserAccount;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

/**
 * @author <a href="mailto:414563035@qq.com">Bedroom</a>
 * @date 2021/4/26 5:23 下午
 */
@Mapper(config = ShareMapperConfig.class)
public interface UserAccountAssembler {
    @Mappings({
            @Mapping(source = "userId.userId", target = "userId"),
    })
    UserAccountInfoDTO toDTO(UserAccount userInfo);
}
